]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspacesView: Don't tie PgUp/PgDown to mapped state
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 8 Apr 2021 15:31:54 +0000 (17:31 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 8 Apr 2021 18:48:58 +0000 (20:48 +0200)
Both app grid and window picker are now always visible in the overview,
so their handling of the PgUp/PgDown keys conflicts.

Resolve that by checking for the overview state instead.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1798>

js/ui/workspacesView.js

index 2c9da5c9bba961504d8cab9ef964c44c31a6ad86..50259041870831f03a3474614cc9d1b292df2f89 100644 (file)
@@ -1142,7 +1142,8 @@ class WorkspacesDisplay extends St.Widget {
     }
 
     _onKeyPressEvent(actor, event) {
-        if (!this.mapped)
+        const { ControlsState } = OverviewControls;
+        if (this._overviewAdjustment.value !== ControlsState.WINDOW_PICKER)
             return Clutter.EVENT_PROPAGATE;
 
         const { workspaceManager } = global;